package Java_test2;

import Test_3.Olddriver.OldDriver;

public class Olddriver_test {
    public static void main(String[] args) {
       Olddriver o=new Olddriver();
       o.name="赵鹏程";
        Car c = new Car(2.0, 3.0);
        Lunchuan l = new Lunchuan(10.0, 1.0, 70.0);
        Plane p = new Plane(3500.0, 2.0);
        Tank t = new Tank(3.0, 6);
        Tuolaji T = new Tuolaji(2.0, 5.3);
        o.drive(c);
        c.start();c.brake();
        o.driver(l);
        o.driver(p);
        o.driver(t);
        o.driver(t);
    }
}